﻿using System.Collections.Generic;
using CarFileManager.Models;

namespace CarFileManager
{
    public abstract class CarFileBase
    {
        public string FileName { get; set; }

        public List<ICar> Cars { get; set; }
        
        protected CarFileBase(string fileName)
        {
            FileName = fileName;
            Cars = new List<ICar>();
        }

        protected internal abstract void ReadFile();
        
        protected internal abstract void SaveFile();
    }
}
